/**
Date: 2025-08-13
Copyright (c) 2025 CAX Conversion Project
*/
import request from '@/utils/request';

//获取数据源列表
export function getDataSourceList(data) {
  return request({
    url: `/isfd/datasourceConfiguration/list`,
    method: 'post',
    data
  });
}
//新增数据源
export function addDataSource(data) {
  return request({
    url: `/isfd/datasourceConfiguration/add`,
    method: 'post',
    data
  });
}

//修改数据源
export function updateDataSource(data) {
  return request({
    url: `/isfd/datasourceConfiguration/edit`,
    method: 'post',
    data
  });
}
//删除数据源
export function deleteDataSource(ids) {
  return request({
    url: `/isfd/datasourceConfiguration/${ids}`,
    method: 'delete'
  });
}
//测试数据源
export function dataSourceTest(data) {
  return request({
    url: `/isfd/datasourceConfiguration/test`,
    method: 'post',
    data
  });
}
